<?php

session_start();
require_once('./config.php');

// Process

$keywords = getLabelsCloud();
$entries = processTagSearch();

// Output

$output = new output_manager();

$output->displayHead();
$output->startDisplayContent();

$output->showLogo();
$output->showLangsLinks();
$output->showBreadcrumb();

if ($keywords) {
    $output->showLabelsCloud($keywords);
}

// If there are results we show em
if ($entries) {
    $output->showPagination();
    $output->showEntries($entries);
    $output->showPagination();
}
    
$output->displayFoot();
